stata syntax for analyses

gen govtrust= . 
replace govtrust= 1 if cen==loc
replace govtrust=2 if cen< loc
replace govtrust=3 if cen>loc

gen parallel =.
replace parallel = 1 if govtrust==1
replace parallel = 0 if govtrust~=1

gen pyramidal =.
replace pyramidal = 1 if govtrust==2
replace pyramidal = 0 if govtrust~=2

gen hierarchical =.
replace hierarchical = 1 if govtrust==3
replace hierarchical = 0 if govtrust~=3

gen economy= C1A
recode economy 99=.
replace economy = 11- economy

gen defense= C1B
recode defense 99=.
replace defense = 11- defense

gen enviro= C1C
recode enviro 99=.
replace enviro = 11- enviro

gen gap= C1D
recode gap 99=.
replace gap = 11- gap

gen corrupt= C1E
recode corrupt 99=.
replace corrupt = 11-corrupt

gen employ= C1F
recode employ 99=.
replace employ = 11- employ

gen food1= C1G
recode food1 99=.
replace food1= 11-food1

gen health= C1H
recode health 99=.
replace health = 11- health

gen jiaoyu= C1I
recode jiaoyu 99=.
replace jiaoyu = 11- jiaoyu


sum govtrust cen loc parallel pyramidal hierarchical age gender edu rural familyeco party efficacy1 internet news economy enviro gap corrupt employ food1 health jiaoyu

1. Predicting public trust in the local and central governments
reg cen age gender edu rural familyeco party efficacy1 internet news economy enviro gap corrupt employ food1 health jiaoyu 
reg loc age gender edu rural familyeco party efficacy1 internet news economy enviro gap corrupt employ food1 health jiaoyu

2. Multinomial logistic regression of hierarchical, pyramidal, and parallel trust
mlogit govtrust age gender edu rural familyeco party efficacy1 internet news economy enviro gap corrupt employ food1 health jiaoyu, base(1)

